package com.rabbiter.oes.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rabbiter.oes.entity.Subject;
import com.rabbiter.oes.vo.SubjectListVO;

import java.util.List;

public interface SubjectService {

    IPage<SubjectListVO> findPage(Page<SubjectListVO> page, String name);

    public List<Subject> findAll();

    public Long findCountByName(String name);

    public Subject findById(String id);

    public int deleteById(String id);

    public int update(Subject subject);

    public int add(Subject subject);

}
